import request from '../utils/request'

export function loginApi ({ username, password }) {
  return request({
    method: 'post',
    url: 'login',
    data: {
      username,
      password
    }
  })
}
